home *** CD-ROM | disk | FTP | other *** search
/ Chip 1996 November / Chip 11-96.iso / treiber / grafik / miro / crystal / cr12_22 / win_nt / cr2222nt.exe / OEMSETUP.INF < prev    next >
INI File  |  1995-10-06  |  19KB  |  426 lines

  1. [Identification]
  2.     OptionType = VIDEO
  3.  
  4. [LanguagesSupported]
  5.     ENG
  6.  
  7. [ProgressCopyENG]
  8.     ProCaption   = "Windows NT Setup"
  9.     ProCancel    = "Cancel"
  10.     ProCancelMsg = "Windows NT is not correctly installed.  Are you sure you want "+
  11.                    "to cancel copying files?"
  12.     ProCancelCap = "Setup Message"
  13.     ProText1     = "Copying:"
  14.     ProText2     = "To:"
  15.  
  16. [StringsENG]
  17.     String1 = "Display"
  18.     String2 = "Please enter the full path to the Windows NT Display "+
  19.               "driver files.  If you want to install files from the "+
  20.               "original Setup floppy disks, type a drive letter (such "+
  21.               "as A:) and Setup will prompt you for the correct disk.  "+
  22.               "Then choose Continue."
  23.  
  24. [Source Media Descriptions]
  25.     1 = "miro.plus high-speed drivers setup disk", TAGFILE = miro
  26.  
  27. [OptionsTextENG]
  28.     "crystals" = "miroCRYSTAL (single screen)"
  29.  
  30. [Options]
  31.     "crystals" = crystals
  32.     "crystal2" = crystal2
  33.  
  34. [MiniportDrivers]
  35.     crystals = crystals, !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_NORMAL, {crystals}, 0, "%SystemRoot%\System32\IoLogMsg.dll", 7, 1, {cpl,cplt           }, noconfig
  36.     crystal2 = crystal2, !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_NORMAL, {crystal2}, 0, "%SystemRoot%\System32\IoLogMsg.dll", 6, 1, {cpl,cplt,mtwc,mtwcd}, noconfig
  37.  
  38. [Files-DisplayDLLs]
  39.     crystals = 1, CRYSTALS.DLL, SIZE=110000
  40.     crystal2 = 1, CRYSTAL2.DLL, SIZE=110000
  41.  
  42. [Files-DisplayMiniportDrivers]
  43.     crystals = 1, CRYSTALS.SYS, SIZE=70000
  44.     crystal2 = 1, CRYSTAL2.SYS, SIZE=70000
  45.  
  46. [Files-Other]
  47.     cpl      = 1, MLINADDR.CPL, SIZE=60000
  48.     cplt     = 1, CRYSTAL2.CPL, SIZE=90000
  49.     mtwc     = 1, MTWINCON.EXE, SIZE=50000
  50.     mtwcd    = 1, MTWINDLL.DLL, SIZE=50000
  51.  
  52. [Files-Ini]
  53.     i00 = 1, CARD000A.INI, SIZE=15000
  54.     i01 = 1, CARD000B.INI, SIZE=15000
  55.     i02 = 1, CARD000D.INI, SIZE=15000
  56.     i03 = 1, CARD000E.INI, SIZE=15000
  57.     i04 = 1, CARD000F.INI, SIZE=15000
  58.     i05 = 1, CARD0010.INI, SIZE=15000
  59.     i06 = 1, CARD0012.INI, SIZE=15000
  60.     i07 = 1, CARD0015.INI, SIZE=15000
  61.     i08 = 1, CARD0016.INI, SIZE=15000
  62.     i09 = 1, CARD0017.INI, SIZE=15000
  63.     i10 = 1, CARD010A.INI, SIZE=15000
  64.     i11 = 1, CARD010B.INI, SIZE=15000
  65.     i12 = 1, CARD010D.INI, SIZE=15000
  66.     i13 = 1, CARD010E.INI, SIZE=15000
  67.     i14 = 1, CARD020D.INI, SIZE=15000
  68.     i15 = 1, CARD020E.INI, SIZE=15000
  69.     i16 = 1, CARD0210.INI, SIZE=15000
  70.     i17 = 1, CARD0211.INI, SIZE=15000
  71.     i18 = 1, CARD0212.INI, SIZE=15000
  72.     i19 = 1, CARD0213.INI, SIZE=15000
  73.     i20 = 1, CARD0214.INI, SIZE=15000
  74.     i21 = 1, CARD030B.INI, SIZE=15000
  75.     i22 = 1, CARD0311.INI, SIZE=15000
  76.     i23 = 1, CARD0313.INI, SIZE=15000
  77.     i24 = 1, CARD040B.INI, SIZE=15000
  78.     i25 = 1, CARD0510.INI, SIZE=15000
  79.     i26 = 1, CARD0610.INI, SIZE=15000
  80.     i27 = 1, MIROHW.INI,   SIZE=15000
  81.     i28 = 1, MIRONAME.INI, SIZE=15000
  82.     i29 = 1, MONITOR.INI,  SIZE=15000
  83.     i30 = 1, TIMING.INI,   SIZE=15000
  84.  
  85. [OpenGLDrivers]
  86.  
  87. [Identify]
  88.     read-syms Identification
  89.     set Status     = STATUS_SUCCESSFUL
  90.     set Identifier = $(OptionType)
  91.     set Media      = #("Source Media Descriptions", 1, 1)
  92.     Return $(Status) $(Identifier) $(Media)
  93.  
  94. [ServicesEntry]
  95.     CurrentEntry = "" ? $(!LIBHANDLE) GetDevicemapValue Video \Device\Video0
  96.  
  97. [SystemVariables]
  98.     STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  99.     STF_WINDOWSPATH = "" ? $(!LIBHANDLE) GetWindowsNtDir
  100.  
  101. [InstallOption]
  102.     set Status       = STATUS_FAILED
  103.     set DrivesToFree = {}
  104.     set !Option   = $($1)
  105.     set SrcDir    = $($2)
  106.     set AddCopy   = $($3)
  107.     set DoCopy    = $($4)
  108.     set DoConfig  = $($5)
  109.     set DoInstall = $($6)
  110.     set LanguageList = ^(LanguagesSupported, 1)
  111.     Ifcontains(i) $($0) in $(LanguageList)
  112.     else
  113.         set Status = STATUS_NOLANGUAGE
  114.         goto finish_InstallOption
  115.     endif
  116.     read-syms Strings$($0)
  117.     ifstr(i) $(!Option) != "DETECT"
  118.         set OptionList = ^(Options, 0)
  119.         ifcontains $(!Option) in $(OptionList)
  120.         else
  121.             goto finish_InstallOption
  122.         endif
  123.         set OptionList = ""
  124.         set DriverEntry       =   #(Options, $(!Option), 1)
  125.         set MiniportDriver    =   #(MiniportDrivers, $(DriverEntry), 1)
  126.         set InstalledDisplays =   #(MiniportDrivers, $(DriverEntry), 5)
  127.         set OtherFiles        =   #(MiniportDrivers, $(DriverEntry), 10)
  128.     endif
  129.     read-syms ServicesEntry
  130.     detect    ServicesEntry
  131.     set DriversList        = ^(MiniportDrivers, 0)
  132.     set MiniportDriverList = ^(Files-DisplayMiniportDrivers, 0)
  133.     set DisplayDriverList  = ^(Files-DisplayDLLs, 0)
  134.     set OpenGLDriverList   = ^(OpenGLDrivers, 0)
  135.     set OtherFilesList     = ^(Files-Other, 0)
  136. installtheoption = +
  137.     ifstr(i) $(AddCopy) == "YES"
  138.         ifstr(i) $(!Option) == "DETECT"
  139.             set DoActualCopy = YES
  140.         else
  141.             set DoActualCopy = NO
  142.             set FileToCheck = #(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  143.             LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\drivers\"$(FileToCheck)
  144.             ifstr(i) $(STATUS) == NO
  145.                 set DoActualCopy = YES
  146.                 goto addfiles
  147.             endif
  148.             ForListDo $(OtherFiles)
  149.                  ifcontains $($) in $(OtherFilesList)
  150.                     set FileToCheck = #(Files-Other, $($), 2)
  151.                     LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  152.                     ifstr(i) $(STATUS) == NO
  153.                         set DoActualCopy = YES
  154.                         goto addfiles
  155.                     endif
  156.                  endif
  157.             EndForListDo
  158.             ForListDo $(InstalledDisplays)
  159.                 ifcontains $($) in $(DisplayDriverList)
  160.                     set FileToCheck = #(Files-DisplayDLLs, $($), 2)
  161.                     LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  162.                     ifstr(i) $(STATUS) == NO
  163.                         set DoActualCopy = YES
  164.                         goto addfiles
  165.                     endif
  166.                     ifcontains $($) in $(OpenGLDriverList)
  167.                         set FileToCheck = #(Files-DisplayOpenGLDrivers, #(OpenGLDrivers, $($), 1), 2)
  168.                         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  169.                         ifstr(i) $(STATUS) == NO
  170.                             set DoActualCopy = YES
  171.                             goto addfiles
  172.                         endif
  173.                     endif
  174.                 endif
  175.             EndForListDo
  176.         endif
  177. addfiles = +
  178.         ifstr(i) $(DoActualCopy) == NO
  179.             shell "subroutn.inf" DriversExist $($0) $(String1)
  180.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  181.                 Debug-Output "VIDEO.INF: shelling DriversExist failed"
  182.                 goto finish_InstallOption
  183.             endif
  184.             ifstr(i) $($R0) == STATUS_CURRENT
  185.             else-ifstr(i) $($R0) == STATUS_NEW
  186.                 set DoActualCopy = YES
  187.             else-ifstr(i) $($R0) == STATUS_USERCANCEL
  188.                 Debug-Output "VIDEO.INF: User cancelled video installation"
  189.                 goto finish_InstallOption
  190.             else
  191.                 Debug-Output "VIDEO.INF: Error reported in DriversExist routine in SUBROUTN.INF"
  192.                 goto finish_InstallOption
  193.             endif
  194.         endif
  195.         ifstr(i) $(DoActualCopy) == YES
  196.             shell "registry.inf" GetNTSource
  197.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  198.             else-ifstr(i) $($R0) != STATUS_SUCCESSFUL
  199.             else
  200.                 set SrcDir = $($R1)
  201.             endif
  202.             shell "subroutn.inf" DoAskSourceEx $(SrcDir) $(String2)
  203.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  204.                 Debug-Output "VIDEO.INF: shelling DoAskSourceEx failed"
  205.                 goto finish_InstallOption
  206.             endif
  207.             ifstr(i) $($R0) == STATUS_SUCCESSFUL
  208.                 set SrcDir = $($R1)
  209.                 ifstr(i) $($R2) != ""
  210.                     set DrivesToFree = >($(DrivesToFree), $($R2))
  211.                 endif
  212.             else
  213.                 Debug-Output "VIDEO.INF: User cancelled asking source."
  214.                 goto finish_InstallOption
  215.             endif
  216.             ifstr(i) $(!Option) != "DETECT"
  217.                 install Install-AddCopyOption
  218.             else
  219.                 install Install-AddAllCopy
  220.             endif
  221.             ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  222.                 Debug-Output "VIDEO.INF: Adding video files to copy list failed"
  223.                 goto finish_InstallOption
  224.             endif
  225.         else
  226.             set DoCopy = NO
  227.         endif
  228.     endif
  229.     ifstr(i) $(DoCopy) == "YES"
  230.         read-syms ProgressCopy$($0)
  231.         install Install-DoCopyOption
  232.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  233.             Debug-Output "Copying files failed"
  234.             goto finish_InstallOption
  235.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  236.             set Status = STATUS_USERCANCEL
  237.             goto finish_InstallOption
  238.         endif
  239.     endif
  240.     ifstr(i) $(DoConfig) == "YES"
  241.         shell "registry.inf" CheckSetupModify
  242.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  243.             goto finish_InstallOption
  244.         endif
  245.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  246.             goto finish_InstallOption
  247.         endif
  248.         ForListDo $(DriversList)
  249.             ifstr(i) $(!Option) == "DETECT"
  250.                 set DriverEntry = $($)
  251.                 set DeviceDescription = ""
  252.                 set ErrorControl      = $(!SERVICE_ERROR_IGNORE)
  253.                 ifcontains #(MiniportDrivers, $(DriverEntry), 1) in $(MiniportDriverList)
  254.                     ifint #(MiniportDrivers, $(DriverEntry), 9) == 1
  255.                         set configDriver = YES
  256.                     else
  257.                         set configDriver = NO
  258.                     endif
  259.                 else
  260.                     set configDriver = NO
  261.                 endif
  262.             else
  263.                 set DeviceDescription = $(!Option)
  264.                 set ErrorControl      = $(#(MiniportDrivers, $(DriverEntry), 4))
  265.                 ifstr(i) $(DriverEntry) == $($)
  266.                     set configDriver = YES
  267.                 else
  268.                     set configDriver = NO
  269.                 endif
  270.             endif
  271.             ifstr(i) $(configDriver) == YES
  272.                 Debug-Output "configuring the miniport driver"
  273.                 set MiniportDriver    =   #(MiniportDrivers, $(DriverEntry), 1)
  274.                 set Type              = $(#(MiniportDrivers, $(DriverEntry), 2))
  275.                 set Group             =   #(MiniportDrivers, $(DriverEntry), 3)
  276.                 set InstalledDisplays =   #(MiniportDrivers, $(DriverEntry), 5)
  277.                 set VgaCompatible     =   #(MiniportDrivers, $(DriverEntry), 6)
  278.                 set EventMessageFile  =   #(MiniportDrivers, $(DriverEntry), 7)
  279.                 set TypesSupported    =   #(MiniportDrivers, $(DriverEntry), 8)
  280.                 set ServiceNode   = $(DriverEntry)
  281.                 set ServiceBinary = %SystemRoot%\System32\drivers\#(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  282.                 set ServicesValues = { +
  283.                         {Type,           0, $(!REG_VT_DWORD),     $(Type)                  }, +
  284.                         {Group,          0, $(!REG_VT_SZ),        $(Group)                 }, +
  285.                         {ErrorControl,   0, $(!REG_VT_DWORD),     $(ErrorControl)          }, +
  286.                         {BinaryPathName, 0, $(!REG_VT_EXPAND_SZ), $(ServiceBinary)         }  +
  287.                         }
  288.                 ifstr(i) $(DoInstall) == "YES"
  289.                     set ServicesValues = >($(ServicesValues), +
  290.                             {Start,          0, $(!REG_VT_DWORD),     $(!SERVICE_SYSTEM_START) })
  291.                 else
  292.                     set ServicesValues = >($(ServicesValues), +
  293.                             {Start,          0, $(!REG_VT_DWORD),     $(!SERVICE_DISABLED)     })
  294.                 endif
  295.                 set !ParametersValues = { +
  296.                         {"Device Description",        0, $(!REG_VT_SZ),       $(DeviceDescription) }, +
  297.                         {InstalledDisplayDrivers,     0, $(!REG_VT_MULTI_SZ), $(InstalledDisplays) }, +
  298.                         {VgaCompatible,               0, $(!REG_VT_DWORD),    $(VgaCompatible)     }, +
  299.                         {DefaultSettings.BitsPerPel,  0, $(!REG_VT_DWORD),    0                    }, +
  300.                         {DefaultSettings.VRefresh,    0, $(!REG_VT_DWORD),    0                    }, +
  301.                         {DefaultSettings.Interlaced,  0, $(!REG_VT_DWORD),    0                    }, +
  302.                         {DefaultSettings.XResolution, 0, $(!REG_VT_DWORD),    0                    }, +
  303.                         {DefaultSettings.YResolution, 0, $(!REG_VT_DWORD),    0                    }, +
  304.                         {DoLinearAddressing,          0, $(!REG_VT_DWORD),    0                    }, +
  305.                         {Primary.IsLeft,              0, $(!REG_VT_DWORD),    0                    }, +    
  306.                         {TwinControlFlag,             0, $(!REG_VT_DWORD),    0                    }  +    
  307.                         }
  308.                 ifstr(i) $(!Option) != "DETECT"
  309.                     shell "" #(MiniportDrivers, $(DriverEntry), 11)
  310.                 endif
  311.                 set DeviceValues = {}
  312.                 set EventLogValues = { +
  313.                         {EventMessageFile, 0, $(!REG_VT_EXPAND_SZ), $(EventMessageFile) }, +
  314.                         {TypesSupported,   0, $(!REG_VT_DWORD),     $(TypesSupported)   }  +
  315.                         }
  316.                 shell "registry.inf"  MakeServicesEntry $(ServiceNode)       +
  317.                                                         $(ServicesValues)    +
  318.                                                         $(!ParametersValues) +
  319.                                                         $(DeviceValues)      +
  320.                                                         $(EventLogValues)    +
  321.                                                         Device0
  322.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  323.                     Debug-Output "Couldn't execute MakeServicesEntry in registry.inf"
  324.                     goto finish_InstallOption
  325.                 endif
  326.                 ifstr(i) $($R0) != STATUS_SUCCESSFUL
  327.                     Debug-Output "MakeServicesEntry failed for video"
  328.                     goto finish_InstallOption
  329.                 endif
  330.                 ForListDo $(InstalledDisplays)
  331.                     ifcontains $($) in $(OpenGLDriverList)
  332.                         set KeyPath = { +
  333.                                 {SOFTWARE,       0, $(MaskAllAccess)}, +
  334.                                 {Microsoft,      0, $(MaskAllAccess)}, +
  335.                                 {"Windows NT",   0, $(MaskAllAccess)}, +
  336.                                 {CurrentVersion, 0, $(MaskAllAccess)}, +
  337.                                 {OpenGLDrivers,  0, $(MaskAllAccess)}  +
  338.                                 }
  339.                         set KeyValue = { +
  340.                                 {$($), 0, $(!REG_VT_SZ), #(OpenGLDrivers, $($), 1) } +
  341.                                 }
  342.                         shell "registry.inf" CreateKey $(!REG_H_LOCAL) $(KeyPath) $(KeyValue)
  343.                         Debug-Output "just did an OGL section"
  344.                         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  345.                             Debug-Output "Couldn't execute CreateKey in registry.inf"
  346.                             goto endInstallOpenGLDriver
  347.                         endif
  348.                         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  349.                             Debug-Output "CreateKey failed for OGLDrivers"
  350.                             goto endInstallOpenGLDriver
  351.                         endif
  352.                         Debug-Output "VIDEO.INF: success installing an ogl entry"
  353.                     endif
  354.                 EndForListDo
  355.             endif
  356.         EndForListDo
  357.     endif
  358.     set Status = STATUS_SUCCESSFUL
  359. finish_InstallOption = +
  360.     ForListDo $(DrivesToFree)
  361.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  362.     EndForListDo
  363.     Return $(Status)
  364.  
  365. [Install-AddCopyOption]
  366.     Debug-Output "adding to copy list"
  367.     set STF_VITAL = ""
  368.  
  369.     AddSectionKeyFileToCopyList   Files-DisplayMiniportDrivers   +
  370.                                   $(MiniportDriver)              +
  371.                                   $(SrcDir)                      +
  372.                                   $(!STF_WINDOWSSYSPATH)\drivers
  373.  
  374.     AddSectionFilesToCopyList     Files-Ini                      +
  375.                                   $(SrcDir)                      +
  376.                                   $(!STF_WINDOWSSYSPATH)\drivers
  377.  
  378.     ForListDo $(OtherFilesList)
  379.         ifcontains $($) in $(OtherFiles)
  380.             Debug-Output "adding other files to copy list"
  381.             AddSectionKeyFileToCopyList   Files-Other                +
  382.                                           $($)                       +
  383.                                           $(SrcDir)                  +
  384.                                           $(!STF_WINDOWSSYSPATH)
  385.         endif
  386.     EndForListDo
  387.  
  388.     ForListDo $(InstalledDisplays)
  389.         ifcontains $($) in $(DisplayDriverList)
  390.             Debug-Output "adding display driver to copy list"
  391.             AddSectionKeyFileToCopyList   Files-DisplayDLLs          +
  392.                                           $($)                       +
  393.                                           $(SrcDir)                  +
  394.                                           $(!STF_WINDOWSSYSPATH)
  395.             ifcontains $($) in $(OpenGLDriverList)
  396.                 Debug-Output "adding opengl driver to copy list"
  397.                 AddSectionKeyFileToCopyList   Files-DisplayOpenGLDrivers +
  398.                                               #(OpenGLDrivers, $($), 1)  +
  399.                                               $(SrcDir)                  +
  400.                                               $(!STF_WINDOWSSYSPATH)
  401.             endif
  402.         endif
  403.     EndForListDo
  404.     exit
  405.  
  406. [Install-AddAllCopy]
  407.     Debug-Output "adding all drivers to copy list"
  408.     set STF_VITAL = ""
  409.     AddSectionFilesToCopyList  Files-DisplayMiniportDrivers   +
  410.                                $(SrcDir)                      +
  411.                                $(!STF_WINDOWSSYSPATH)\drivers
  412.     AddSectionFilesToCopyList  Files-DisplayDLLs            +
  413.                                $(SrcDir)                    +
  414.                                $(!STF_WINDOWSSYSPATH)
  415.     exit
  416.  
  417. [Install-DoCopyOption]
  418.     CopyFilesInCopyList
  419.     exit
  420.  
  421. [noconfig]
  422.     return
  423.  
  424. [twinconfig]
  425.     return
  426.